<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>bootstrap 栅格系统</title>
    <link
      href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
      rel="stylesheet"
    />
    <style>
      div[class*="col"] {
        height: 50px;
        border: solid 1px #90c;
      }

      .col-10-1{
        width: 10%;
        float: left;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <h2>栅格系统</h2>
      <hr />
      <h3>12 等分</h3>
      <div>
        <div class="col-lg-1"></div>
        <div class="col-lg-2"></div>
        <div class="col-lg-3"></div>
        <div class="col-lg-4"></div>
        <div class="col-lg-5"></div>
      </div>
      <!-- 清除浮动 -->
      <div class="clearfix"></div>

      <h3>响应式</h3>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="col-lg-2 col-md-3 col-sm-4 col-xs-6"></div>
      <div class="clearfix"></div>

      <h3>列偏移</h3>
      <div class="col-lg-4 col-lg-offset-4"></div>
      <div class="clearfix"></div>

      <h3>列嵌套</h3>
      <div class="col-lg-6">
        <div class="col-lg-6 col-lg-offset-3"></div>
      </div>

      
    </div>

    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
  </body>
</html>
